package com.gin.provider3.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.gin.api.service.DemoService;

import java.util.Date;

@Service(
        version = "${demo.service.version}",
        timeout = 5000,
        group = "other"
)
public class DemoServiceImpl3 implements DemoService {
  @Override
  public String sayHello(String name) throws InterruptedException {
    System.out.println(new Date());
    System.out.println("3333333333333333333333");
//    Thread.sleep(2000);
    return "Hello, " + name + " (from DemoServiceImpl3)";
  }

  @Override
  public String sayGoodBye(String name) throws InterruptedException {
    System.out.println(new Date());
    System.out.println("sayGoodBye 3333333333333333333333");
    return "GoodBye, " + name + " (from DemoServiceImpl3)";
  }
}
